<%@page import="java.util.*" contentType="text/html" pageEncoding="UTF-8" isELIgnored="false"%>

<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@taglib  prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"  %>
<%@taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><%=rb.getString("title")%></title>
    </head>

    <%!
    java.util.ResourceBundle rb = java.util.ResourceBundle.getBundle("com.aptech.bundle.Resource", java.util.Locale.US);
    %>

    <%  Locale locale = Locale.getDefault();
                out.println("Default locale: <br/>DisplayName:" + locale.getDisplayName());
                out.println("<br/>Country: " + locale.getCountry());
                out.println("<br/>Language: " + locale.getLanguage());
    %>

    <fmt:bundle basename="com.aptech.bundle.Resource" >

        <%
                    request.setAttribute("id", 321);
                    request.setAttribute("name", "thanh123");
        %>
        <body>
            <b><br/>&lt;fmt:message key="name"/&gt; </b> -> <fmt:message key="name" />
        </body>
    </fmt:bundle>
</html>
